using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.ViewModel;
using TraiderInformationUI.Models.Models;

namespace TraiderInformationUI.Modules.News.Article
{
    [Export(typeof(NewsReaderViewModel))]
    [PartCreationPolicy(CreationPolicy.Shared)]
    public class NewsReaderViewModel : NotificationObject
    {
        private NewsArticle newsArticle;

        public NewsArticle NewsArticle        
        {
            get
            {
                return newsArticle;
            }
            set
            {
                if (newsArticle != value)
                {
                    newsArticle = value;
                    RaisePropertyChanged(() => this.NewsArticle);     
                }
            }
        }

    }
}
